export class systemgroupdata {
  id?: number;
  name = '';
                    gid=''
                  value=''
                  sort=''
                  status=''
                  createTime=''
                  updateTime=''
        constructor(data?: systemgroupdata) {
    data && this.setProps(data);
  }

  setProps(data: systemgroupdata) {
    (Object.keys(this) as Array<keyof Isystemgroupdata>).forEach((key) => {
      // @ts-ignore
      this[key] = data[key]
    })
  }
}

export type Isystemgroupdata = Omit<systemgroupdata, 'setProps'>